{%extends file="wap_activity/page/layout.tpl"%}
{%block name="sub-head-static"%}
    {%require name="wap_activity:static/xiaomaibu/xiaomaibu.less"%}
    {%require name="wap_activity:static/xiaomaibu/xiaomaibu.js"%}
{%/block%}

{%block name="html-body"%}
<div class="activity-xiaomaibu">

    {%if $error_no==0 && $data%}
        <div class="can">你可以免费获得一瓶饮料哦，10分钟内有效~</div>
    {%elseif $error_no==-1%}
        <div class="cannot">你已经领取过饮料了，不能再领取饮料了~</div>
    {%elseif $error_no==-2%}
        <div class="timeout">你已经领取过饮料了，或者已经过了10分钟了，不能领取饮料了~~</div>
    {%else%}
        <div class="can">你可以免费获得一瓶饮料哦，10分钟内有效~</div>
    {%/if%}
    <div class="my-content">
        <img src="../static/allindex/image/part1.png">
        <img src="../static/allindex/image/part2.png">
        <img src="../static/allindex/image/part3.png">
        <img src="../static/allindex/image/part4.png">
        <section>
            {%if $smarty.get.contact_from%}
            {%$from=$smarty.get.contact_from%}
            {%else%}
            {%$from=3%}
            {%/if%}
            {%widget name="wap_activity:widget/registerguide/registerguide.tpl" call = "registerguide" from={%$from%}%}
        </section>
    </div>
</div>
{%/block%}